/**
 * @(#)AjaxResultInfo.java 2011-9-29
 * 
 * Copyright 2000-2011 by ChinanetCenter Corporation.
 *
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ChinanetCenter Corporation ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with ChinanetCenter.
 * 
 */

package com.szf.base.web;

import java.io.Serializable;

public class AjaxResultInfo implements Serializable {

	private static final long serialVersionUID = -3194472273665854610L;

	private boolean success = true;
	private String msg;
	private String param;
	/**
	 * @deprecated 直接使用msg配合success即可。
	 */
	@Deprecated
	private String exception;

	public AjaxResultInfo(boolean success, String msg) {
		this.success = success;
		this.msg = msg;
		this.exception = msg;
	}

	public AjaxResultInfo(boolean success, String msg, String param) {
		this.success = success;
		this.msg = msg;
		this.param = param;
		this.exception = msg;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getParam() {
		return param;
	}

	public void setParam(String param) {
		this.param = param;
	}

	public String getException() {
		return exception;
	}

	public void setException(String exception) {
		this.exception = exception;
	}

}
